Remove unnecessary zeroing in Triton MXFP8 dequantize kernel#516
Merged
Remove unnecessary zeroing in Triton MXFP8 dequantize kernel#516
Conversation
6e9b670 to
f56564b
Compare
Contributor
Author
|
Note that CI level 3 tests already passed before force-pushing to reconcile |
wangye805
approved these changes
Apr 3, 2026
matthiasdiener
approved these changes
Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
These improvements were spotted by Claude during the development/practice of a
gpu-profilingskill targeted at triton MXFP8 casting. These changes improve the Triton kernel's performance by about 10-70% (biggest gains seen in larger configs). With these changes, Triton kernel dequantization is now closer to HIP kernel performance for small matrices, and even outperforms HIP kernel dequantization on the largest matrices.Benchmarks were generated by bench_mxfp8_cast.py:
On
dev:With PR:
HIP kernel on
dev:Type of change
Changes
Please list the changes introduced in this PR:
torch.zeroswithtorch.emptyGROUP_Ysize for dequantizationChecklist: